package com.cq.hd.generator.config;

import com.baomidou.mybatisplus.generator.config.StrategyConfig;
import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;

/**
 * @description: 数据表配置
 * @author: mYunYu
 * @date: 2021/7/7 15:12
 * @version: v1.0
 */
public class MyStrategyConfig {

    public StrategyConfig getStrategyConfig() {
        // 策略配置
        return new StrategyConfig()
                .setEntityLombokModel(true)
                .setControllerMappingHyphenStyle(true)
                .setEntityTableFieldAnnotationEnable(true)
                .setNaming(NamingStrategy.underline_to_camel)
                .setRestControllerStyle(true)
                .setCapitalMode(true);
    }

}
